import request from '@/utils/request'

// 获取验证码图片
export async function getImage () {
    return request('/api/verifyCode/getImage', {
        method: 'get',
        responseType: 'arrayBuffer'
    })
}

/**
 * 校验验证码
 * @param {String} code 验证码
*/
export async function checkVerifyCode (params = {}) {
    return request('/api/verifyCode/checkVerifyCode', {
        method: 'get',
        params
    })
}